package entity;

import loadsave.Memento;
import loadsave.loadsaveobject.LoadSaveObject;
import occupation.Occupation;

public class Pet extends WorldNPC{

	public Pet() { super(); }
	
	public Pet(String model, Occupation occ) {
		super(model, occ);
		setFriendly(true);
	}
	
	@Override
	public Memento getMemento() {
		return new Memento() {

			@Override
			public LoadSaveObject getState() {
				LoadSaveObject toReturn = Pet.super.getMemento().getState();
				toReturn.setType("Pet");
				return toReturn;
			}

			@Override
			public void restoreState(LoadSaveObject lso) {
				Pet.super.getMemento().restoreState(lso);
			}
			
		};
	}
	
}
